package com.tro.mail.util;
import java.util.List;
import java.util.Map;

	/**
	 * easyui使用的tree模型
	 * 
	 * @author ty
	 * 
	 */
	public class EasyuiTree implements java.io.Serializable {
	 
		private String id;
		private String text;// 树节点名称
		private String iconCls;// 前面的小图标样式
		private Boolean checked = false;// 是否勾选状态
		private Map<String, Object> attributes;// 其他参数
		private List<EasyuiTree> children;// 子节点
		private String state = "open";// 是否展开(open,closed)
		private boolean isleaf = true;// 是否展开(open,closed)
		
		
		public EasyuiTree() {
			super();
		}

		public EasyuiTree(String id, String text, String iconCls,
				Boolean checked, Map<String, Object> attributes,
				List<EasyuiTree> children, String state, boolean isleaf) {
			super();
			this.id = id;
			this.text = text;
			this.iconCls = iconCls;
			this.checked = checked;
			this.attributes = attributes;
			this.children = children;
			this.state = state;
			this.isleaf = isleaf;
		}

		public String getId() {
			return id;
		}

		public void setId(String id) {
			this.id = id;
		}

		public String getText() {
			return text;
		}

		public void setText(String text) {
			this.text = text;
		}

		public Boolean getChecked() {
			return checked;
		}

		public void setChecked(Boolean checked) {
			this.checked = checked;
		}

		public Map<String, Object> getAttributes() {
			return attributes;
		}

		public void setAttributes(Map<String, Object> attributes) {
			this.attributes = attributes;
		}

		

		public List<EasyuiTree> getChildren() {
			return children;
		}

		public void setChildren(List<EasyuiTree> children) {
			this.children = children;
		}

		public String getState() {
			return state;
		}

		public void setState(String state) {
			this.state = state;
		}

		public String getIconCls() {
			return iconCls;
		}

		public void setIconCls(String iconCls) {
			this.iconCls = iconCls;
		}

		public boolean isIsleaf() {
			return isleaf;
		}

		public void setIsleaf(boolean isleaf) {
			this.isleaf = isleaf;
		}

	}